FROM openjdk:22-ea-21-jdk-slim
MAINTAINER Mahone <hnliuwx@gmail.com>
ENTRYPOINT ["java", "-jar", "/app.jar"]
ARG JAR_FILE
COPY target/DDns-0.0.1.jar app.jar
RUN ln -snf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo 'Asia/Shanghai' > /etc/timezone
